<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // arguemnets参数的使用
        function sum() {
            for(var i = 0; i < arguments.length; i++) {
                console.log('sum函数接受的形参：' + arguments[i]);
            }
        }
        console.log('第一次调用');
        sum(1,2,3);
        console.log('第二次调用');
        sum(4,5);
    </script>
</head>
<body>
    
</body>
</html>